/*
 * @Author: zhangzhen
 * @Date: 2023-01-03 09:00:50
 * @LastEditors: zhangzhen
 * @LastEditTime: 2023-02-07 14:38:31
 *
 */
import React, {FC} from 'react';
import {Form, InputNumber} from 'antd';
import {FormConTextValueType} from '../context';

const FormItem = Form.Item;

const InputComponent: FC<FormConTextValueType> = (props) => {
    const {
        label,
        name,
        rules,
        required,
        infoCome,
        isSearch,
        isShowInTable,labelSpan,
        ...inputNumberProps
    } = props;

    return (
        <FormItem
        labelCol={{flex: `${labelSpan}px`}}
        label={label} name={name} rules={rules} required={required}>
            <InputNumber style={{width: '150px'}} {...inputNumberProps} />
        </FormItem>
    );
};

export default InputComponent;
